<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>spade.XMLCodec.XMLCodec</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="spade-module.html">Package&nbsp;spade</a> ::
        <a href="spade.XMLCodec-module.html">Module&nbsp;XMLCodec</a> ::
        Class&nbsp;XMLCodec
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="spade.XMLCodec.XMLCodec-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class XMLCodec</h1><p class="nomargin-top"><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_spade_xm" name="uml_class_diagram_for_spade_xm">
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#NULL" title="Encode the information of Agent, Tags To and From" alt="" coords="17,239,271,257"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#accumulator" title="/** This method is called when warning occur*/ &#160;&#160;public void warning(SAXParseException exception) { if(logger.isLoggable(Logger.WARNING)) logger.log(Logger.WARNING,&quot; line &quot; + exception.getLineNumber() + &quot;: &quot;+ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;exception.getMessage()); }" alt="" coords="17,257,271,276"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#__init__" title="spade.XMLCodec.XMLCodec.__init__" alt="" coords="17,279,271,297"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#encodeAid" title="spade.XMLCodec.XMLCodec.encodeAid" alt="" coords="17,297,271,316"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#encodeTag" title="spade.XMLCodec.XMLCodec.encodeTag" alt="" coords="17,316,271,335"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#encodeOneLineTag" title="spade.XMLCodec.XMLCodec.encodeOneLineTag" alt="" coords="17,335,271,353"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#encodeXML" title="General Encoding of the envelope" alt="" coords="17,353,271,372"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#startDocument" title="Receive notification of the beginning of a document." alt="" coords="17,372,271,391"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#endDocument" title="Receive notification of the end of a document." alt="" coords="17,391,271,409"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#startElement" title="Signals the start of an element in non&#45;namespace mode." alt="" coords="17,409,271,428"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#endElement" title="Signals the end of an element in non&#45;namespace mode." alt="" coords="17,428,271,447"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#characters" title="Receive notification of character data." alt="" coords="17,447,271,465"/>
<area shape="rect" id="node1807" href="spade.XMLCodec.XMLCodec-class.html#parse" title="parses the xml input" alt="" coords="17,465,271,484"/>
<area shape="rect" id="node1" href="spade.XMLCodec.XMLCodec-class.html" title="XML Parser" alt="" coords="5,214,283,490"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Called by the parser to give the application a locator for locating the &#160;origin of document events." alt="" coords="19,39,269,57"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Begin the scope of a prefix&#45;URI Namespace mapping." alt="" coords="19,57,269,76"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="End the scope of a prefix&#45;URI mapping." alt="" coords="19,76,269,95"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Signals the start of an element in namespace mode." alt="" coords="19,95,269,113"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Signals the end of an element in namespace mode." alt="" coords="19,113,269,132"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Receive notification of ignorable whitespace in element content." alt="" coords="19,132,269,151"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Receive notification of a processing instruction." alt="" coords="19,151,269,169"/>
<area shape="rect" id="node1808" href="javascript:void(0);" title="Receive notification of a skipped entity." alt="" coords="19,169,269,188"/>
<area shape="rect" id="node2" href="javascript:void(0);" title="Interface for receiving logical document content events." alt="" coords="7,6,281,194"/>
</map>
  <img src="uml_class_diagram_for_spade_xm.gif" alt='' usemap="#uml_class_diagram_for_spade_xm" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>XML Parser</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="encodeAid"></a><span class="summary-sig-name">encodeAid</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">agentid</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.encodeAid">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="encodeTag"></a><span class="summary-sig-name">encodeTag</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tag</span>,
        <span class="summary-sig-arg">content</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.encodeTag">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="encodeOneLineTag"></a><span class="summary-sig-name">encodeOneLineTag</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tag1</span>,
        <span class="summary-sig-arg">tag2</span>,
        <span class="summary-sig-arg">value</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.encodeOneLineTag">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="encodeXML"></a><span class="summary-sig-name">encodeXML</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">env</span>)</span><br />
      General Encoding of the envelope</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.encodeXML">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#startDocument" class="summary-sig-name">startDocument</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Receive notification of the beginning of a document.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.startDocument">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#endDocument" class="summary-sig-name">endDocument</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Receive notification of the end of a document.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.endDocument">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#startElement" class="summary-sig-name">startElement</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">localName</span>,
        <span class="summary-sig-arg">attributes</span>)</span><br />
      Signals the start of an element in non-namespace mode.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.startElement">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#endElement" class="summary-sig-name">endElement</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">localName</span>)</span><br />
      Signals the end of an element in non-namespace mode.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.endElement">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="spade.XMLCodec.XMLCodec-class.html#characters" class="summary-sig-name">characters</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">buff</span>)</span><br />
      Receive notification of character data.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.characters">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="parse"></a><span class="summary-sig-name">parse</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">_in</span>)</span><br />
      parses the xml input</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.parse">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>xml.sax.handler.ContentHandler</code></b>:
      <code>endElementNS</code>,
      <code>endPrefixMapping</code>,
      <code>ignorableWhitespace</code>,
      <code>processingInstruction</code>,
      <code>setDocumentLocator</code>,
      <code>skippedEntity</code>,
      <code>startElementNS</code>,
      <code>startPrefixMapping</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE VARIABLES ==================== -->
<a name="section-InstanceVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="NULL"></a><span class="summary-name">NULL</span><br />
      Encode the information of Agent, Tags To and From
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="spade.XMLCodec.XMLCodec-class.html#accumulator" class="summary-name">accumulator</a><br />
      /** This method is called when warning occur*/  
public void warning(SAXParseException exception) {
if(logger.isLoggable(Logger.WARNING))
logger.log(Logger.WARNING,&quot; line &quot; + exception.getLineNumber() + &quot;: &quot;+
           exception.getMessage());
}
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="startDocument"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">startDocument</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.startDocument">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Receive notification of the beginning of a document.</p>
  <p>The SAX parser will invoke this method only once, before any other 
  methods in this interface or in DTDHandler (except for 
  setDocumentLocator).</p>
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.startDocument
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="endDocument"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">endDocument</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.endDocument">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Receive notification of the end of a document.</p>
  <p>The SAX parser will invoke this method only once, and it will be the 
  last method invoked during the parse. The parser shall not invoke this 
  method until it has either abandoned parsing (because of an unrecoverable
  error) or reached the end of input.</p>
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.endDocument
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="startElement"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">startElement</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">localName</span>,
        <span class="sig-arg">attributes</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.startElement">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Signals the start of an element in non-namespace mode.</p>
  <p>The name parameter contains the raw XML 1.0 name of the element type 
  as a string and the attrs parameter holds an instance of the Attributes 
  class containing the attributes of the element.</p>
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.startElement
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="endElement"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">endElement</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">localName</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.endElement">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Signals the end of an element in non-namespace mode.</p>
  <p>The name parameter contains the name of the element type, just as with
  the startElement event.</p>
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.endElement
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="characters"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">characters</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">buff</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="spade.XMLCodec-pysrc.html#XMLCodec.characters">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Receive notification of character data.</p>
  <p>The Parser will call this method to report each chunk of character 
  data. SAX parsers may return all contiguous character data in a single 
  chunk, or they may split it into several chunks; however, all of the 
  characters in any single event must come from the same external entity so
  that the Locator provides useful information.</p>
  <dl class="fields">
    <dt>Overrides:
        xml.sax.handler.ContentHandler.characters
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== INSTANCE VARIABLE DETAILS ==================== -->
<a name="section-InstanceVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="accumulator"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">accumulator</h3>
  <pre class="literalblock">

/** This method is called when warning occur*/  
public void warning(SAXParseException exception) {
if(logger.isLoggable(Logger.WARNING))
logger.log(Logger.WARNING,&quot; line &quot; + exception.getLineNumber() + &quot;: &quot;+
           exception.getMessage());
}

/** This method is called when errors occur*/ 
public void error(SAXParseException exception)  {
if(logger.isLoggable(Logger.WARNING))
logger.log(Logger.WARNING,&quot;ERROR: line &quot; + exception.getLineNumber() + &quot;: &quot; +
               exception.getMessage());
}

/** This method is called when non-recoverable errors occur.*/ 
public void fatalError(SAXParseException exception) throws SAXException{
if(logger.isLoggable(Logger.WARNING))
logger.log(Logger.SEVERE,&quot;FATAL: line &quot; + exception.getLineNumber() + &quot;: &quot; +
               exception.getMessage());
throw exception;
}

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Aug  1 18:44:49 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
